<?php
/*******
 *
 *系统的初始化文件
 *
 */

//引入系统常量
require("default.php");

//自动载入常用函数
require(FUN_MODEL.'global.php');

//判断今天是否有过采集新闻
$test_file  = $sina_url_save_file = UPLOAD_FILE."sina/url".DATE_YMD.".".FILE_SUFFIX;
if(!is_file($test_file )){
	redirect("index.php",1);
}


//初始化smarty模版引擎
require('Smarty/libs/Smarty.class.php');
$smarty = new Smarty;

//$smarty->debugging = true;
$smarty->caching = false;
//$smarty->cache_lifetime = 120;
$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";


